import { CommonModal } from "@/views/components/CommonModal";
import { Alert, Button } from "antd";
const { ErrorBoundary } = Alert;
const ImageErrorModal = ({ type = "error", message = "图片仅限1m以内，上传失败", onCancel }) => {
	return (
		<CommonModal
			title={{ title: "提示" }}
			open={true}
			width="396px"
			onCancel={onCancel}
            zIndex={1100}
			footer={
				<Button size="middle" onClick={onCancel}>
					关 闭
				</Button>
			}
			className="image-error-modal"
		>
			<Alert showIcon type={type} message={message} style={{ marginBottom: "24px" }} />
		</CommonModal>
	);
};
export default ImageErrorModal;
